import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
      {
      path: '/',
      name: 'login',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Login/GetLoginView.vue'),
    },
        {
      path: '/AddKs',
      name: 'AddKs',//科室新增
      component: () => import('../views/Ks/AddKsView.vue'),
    },
       {
      path: '/GetKs',
      name: 'GetKs',//科室显示
      component: () => import('../views/Ks/GetKsView.vue'),
    },
      {
      path: '/Ups',
      name: 'Ups',//科室修改
      component: () => import('../views/Ks/UpdateKsView.vue'),
    },
     {
      path: '/RoomXs',
      name: 'RoomXs',//病房显示
      component: () => import('../views/Room/GetRoomView.vue'),
    },
     {
      path: '/AddRoom',
      name: 'AddRoom',//病房新增
      component: () => import('../views/Room/AddRoomView.vue'),
    },
     {
      path: '/Adddoctor',
      name: 'Adddoctor',//医生新增
      component: () => import('../views/Doctor/AdddoctorView.vue'),
    },
      {
      path: '/Getdoctor',
      name: 'Getdoctor',//医生显示
      component: () => import('../views/Doctor/GetdoctorView.vue'),
    },
  ],
})

export default router
